package com.example.saveword.utils;

import android.content.Context;

import com.example.saveword.model.User;

public class SetUserUtils {

    //用于添加一个测试用户
    public static void SetTestUser(Context context)
    {
        User nowUser;
        nowUser = new User();
        nowUser.set_id(1);
        nowUser.setUsername("wjs");
        nowUser.setPhone("1205329889");
        nowUser.setWordType("CET4");
        SPUtils.put(context, "User", JsonUtils.objectToJson(nowUser));
        SPUtils.put(context,"NeedStudy", 30);
        SPUtils.put(context, "LearnTime", 0);
    }
}
